package com.wanxing.sellerapp.data.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.wanxing.sellerapp.data.bean.SyncVideo

@Dao
interface SyncVideoDao {

    @Insert
    fun insertAll(vararg orders: SyncVideo)

    @Query("select * from syncvideo")
    fun getAll(): List<SyncVideo>

    @Query("select * from syncvideo where id=:orderId")
    fun getByOrderId(orderId: String): SyncVideo?

    @Delete
    fun deleteRecord(vararg orders: SyncVideo)
}